package com.itheima.d13_printstream;

import java.io.FileOutputStream;
import java.io.PrintWriter;

/**
 * 打印流 打印什么输出什么
 */
public class PrintStreamDemo1 {
    public static void main(String[] args) {
       try( PrintWriter pw = new PrintWriter(new FileOutputStream("day06-file-io\\src\\test10.txt",true),true);
       ){
           pw.println(97);
           pw.println("唯有一剑");
           pw.println(true);
           pw.println(1.8);
           System.out.println("打印完毕");
       }catch (Exception e){
           e.printStackTrace();
       }
    }
}
